﻿using System;
using System.Collections.Generic;

namespace DevManager.Models;

[Serializable]
public class Download
{
    public string Name { get; set; } = "";
    public string Url { get; set; } = "";
    public string Extension { get; set; } = "";
}

[Serializable]
public class LanguageItem
{
    public string Name { get; set; } = "";
    public List<Download> DownloadUrls { get; set; } = new();
}

[Serializable]
public class Language
{
    public string Name { get; set; } = "";
    public List<LanguageItem> LanguageItems { get; set; } = new();
}

/// <summary>
/// f : 文件路径 ; l : 语言路径 ; fl : 文件夹路径
/// </summary>
[Serializable]
public class LanguageList
{
    public List<Language> Languages { get; set; } = new();
    public Dictionary<string, string> HasStrings { get; set; } = new();
    public Dictionary<string, string> RunOrders { get; set; } = new();
    public Dictionary<string, string> PackageList { get; set; } = new();
}